<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CreateSpeech.aspx.cs" Inherits="ElevatorSpeeches.UI.WebForms.CreateSpeech" MasterPageFile="~/MainLayout.Master" %>

<asp:Content runat="Server" ContentPlaceHolderID="MainContent">

    <h2>Create New Speech</h2>

<asp:UpdateProgress runat="server" ID="UpdateProgress1" AssociatedUpdatePanelID="MyUpdate">
    <ProgressTemplate>
        Saving...<br />
        <img src="http://www.joeon.net/blogfiles/ajax-loader.gif" />
    </ProgressTemplate>
</asp:UpdateProgress>
<asp:UpdatePanel runat="Server" ID="MyUpdate">
    <ContentTemplate>
        
        <Elevator:ValidationDisplay runat="Server" ID="ValidationDisplay" />
        
        <asp:Label runat="server" ID="TitleLabel" Text="Title" AssociatedControlID="Title"/>
        <br />
        <asp:TextBox 
            runat="Server" 
            ID="Title" 
            Columns="50"
            />
        <p />
      
        <asp:Button 
            runat="Server" 
            ID="SubmitButton" 
            Text="Submit"
            OnClick="Create_Speech"
            />
            
    </ContentTemplate>
</asp:UpdatePanel>

</asp:Content>